/*
 * testings.h
 *
 *  Created on: 3 janv. 2010
 *      Author: nico
 */

#ifndef TESTINGS_H_
#define TESTINGS_H_

#include <iostream>
#include "pmBox.h"

using namespace std;


class testBox : public pmBox<void, double>
{
public:
	bool Compute()
	{

		cout << "execution du filtre..." << endl;
		for(unsigned i=0; i< 10; ++i )	/*pmBox<void,double>::*/m_outputs[0]->SetValue(1,i);
		cout << "filtre execute" << endl;
		return true;
	}

	testBox(int nbInputs, int nbOutputs, int nbParams )
	: pmBox<void, double>(nbInputs, nbOutputs, nbParams )
	{
		cout << "constructeur de testBox" << endl;

		//m_nbInputs = 0;
		//m_nbOutputs = nbOutputs;
		//m_nbParams = nbParams;

		pmBox<void,double>::m_outputs[0] = new pmBuffer<double>("chanel1",10);

		cout << "...ok construit" << endl;
	}
};




#endif /* TESTINGS_H_ */
